package net.lzzy.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@Data
@PropertySource("classpath:person.properties")
@ConfigurationProperties(prefix="person")
public class Person {
    private int id;
    private String name;
}
